package com.zxdemo.jpa.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**   
* @Description: 角色实体类
* <p>Copyright: Copyright (c) 2017<／p>
* @Package com.zxdemo.jpa.model 
* @author 张翔
* @date 2017年1月19日 下午4:18:46 
* @version V1.0   
*/
@Entity
public class Role implements Serializable{
		private static final long serialVersionUID=1L;
		/**
		 * 角色ID
		 */
		@Id
		@GeneratedValue(strategy=GenerationType.AUTO)
		private Long roleId;
		/**
		 * 角色名称
		 */
		private String roleName;
		/**
		 * 备注
		 */
		private String remark;
		/**
		 * 创建时间
		 */
		private Date createTime;
		/**
		 * 关联菜单（待开发）
		 */
		@Transient
		private List<Long> menuIdList;
		
		public List<Long> getMenuIdList() {
			return menuIdList;
		}
		public void setMenuIdList(List<Long> menuIdList) {
			this.menuIdList = menuIdList;
		}
		public Long getRoleId() {
			return roleId;
		}
		public void setRoleId(Long roleId) {
			this.roleId = roleId;
		}
		public String getRoleName() {
			return roleName;
		}
		public void setRoleName(String roleName) {
			this.roleName = roleName;
		}
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public Date getCreateTime() {
			return createTime;
		}
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		
}	
